<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<div class="data_list">
    <div class="data_list_title">
        <img src="/static/images/search_icon.png"/>
     </div>
    <div class="datas search">
        <ul>
            <c:choose>
                <c:when test="${blogList.size()==0 }">
                    <div align="center" style="padding-top: 20px"><font color="red">${q}</font>未查询到结果，请换个关键字试试！</div>
                </c:when>
                <c:otherwise>
                    <div align="center" style="padding-top: 20px">
                        查询<font color="red">${q}</font>关键字，约${resultCount}条记录！
                    </div>
                    <c:forEach var="blog" items="${blogList }" varStatus="status">
                        <li style="margin-bottom: 20px">
                            <span class="title"><a href="${pageContext.request.contextPath}/blog/details/${blog.id }.htm" target="_blank">${blog.title }</a></span>
                            <span class="summary">摘要:${blog.content }...</span>
                            <span class="link"><a href="${pageContext.request.contextPath}/blog/details/${blog.id }.htm">http://blog.java1234.com/blog/articles/${blog.id }.htm</a>&nbsp;&nbsp;&nbsp;&nbsp;发布日期：${blog.releaseDateStr }</span>
                        </li>
                    </c:forEach>
                </c:otherwise>
            </c:choose>
        </ul>
    </div>
    ${pageCode }
</div>
</body>
</html>
